import { request } from '../request'

export function getBashboardData (offset) {
  return request({
    url: '/business/dataScreen/dataScreenCount',
    params: offset
  })
}

// 站点详情接口
export const getDetailsById = params => {
  return request({
    url: '/business/site/getDetailsById',
    params
  })
}
// 车辆详情接口
export const getListByCarNumber = params => {
  return request({
    url: '/business/car/getListByCarNumber',
    params
  })
}
// 数据查询-根据id获取详情
export const getRealtimeDetailsById = params => {
  return request({
    url: '/business/query/getDetailsById',
    params
  })
}
// 数据大屏--实时数据
export const getRealTimeData = params => {
  return request({
    url: '/business/dataScreen/getRealTimeData',
    params
  })
}
